package com.example.demo.zuhe;

import com.example.demo.waiguan.DVDPlyer;

/**
 * @Description
 * @Author youxin
 * @Version V1.0.0
 * @Since 1.0
 * @Date 2022/1/17
 */
public class Client {
    public static void main(String[] args) {
        //创建学校
        OrganizationComponent university=new University("清华大学","好学校");
        //创建院系
        OrganizationComponent college1=new College("计算机学院","计算机相关");
        OrganizationComponent college2=new College("信息工程","信息相关");
        //创建学院下面的专业
        college1.add(new Department("软件工程","学习软件"));
        college1.add(new Department("网络工程","学习网络"));
        college2.add(new Department("通信技术","学习通信"));
        college2.add(new Department("计算机科学与技术","综合学习"));
        university.add(college1);
        university.add(college2);
        university.print();
    }

}
